<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:layout="http://java.sun.com/jsf/composite/components/layout"
      xmlns:composite="http://java.sun.com/jsf/composite">
 
	<composite:interface name="statisticsPanel">
		<composite:attribute name="id" type="java.lang.String" />
	</composite:interface>
	 
	<composite:implementation>
		<h:outputStylesheet library="components/statistics/skin" name="statistics_style.css" target="head" />
		<p:panel id="#{cc.attrs.id}">
			<h:panelGrid styleClass="statisticsComponent" style="font-size: 12px;">
				<layout:title value="Questions Statistics" />
				<h:outputText value="Checkbox Questions: #{statistics.checkboxQuestionsCount}" />
				<h:outputText value="Radio Questions: #{statistics.radioQuestionsCount}" />
				<h:outputText value="Discursive Questions: #{statistics.discursiveQuestionsCount}" />
				<h:outputText value="Total of Questions: #{statistics.questionsCount}" style="font-weight: bold;" />
				
				<layout:title value="Surveys Statistics" />
				<h:outputText value="Total of surveys: #{statistics.surveysCount}" style="font-weight: bold;" />
			</h:panelGrid>
		</p:panel>
	</composite:implementation>
</html>
